package com.baby.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
public class TaskManage {
	
	@Scheduled(cron = "0 0 0 1 * ?")//每个月1号0点执行一次
	public void monthRanking() {
		log.info("每个月1号0点执行一次");
	}
}
